<template>
  <div class="demand">
    <div class="banner">
      <div>
        <p>提交需求</p>
        <p class="info">
          基于狸花工坊研发效率BOT，您负责开发，我们负责销售售后，合作共赢，我们会第一时间为您安排对接
        </p>
      </div>
    </div>
    <div class="demandMain">
      <div class="order">
        <a-form-model :model="form" :rules="rules">
          <a-form-model-item prop="desc">
            <a-input
              v-model="form.desc"
              placeholder="请描述您的机器人需求"
              type="textarea"
              :rows="10"
            />
          </a-form-model-item>
          <a-form-model-item prop="tell">
            <a-input
              v-model="form.tell"
              placeholder="请输入您的联系方式"
              type="textarea"
            />
          </a-form-model-item>
        </a-form-model>
        <div class="orderBtn">提交</div>
      </div>
      <div class="ourInfoList">
        <div v-for="(item, index) in ourInfoItems" :key="index">
          <div class="infoCard">
            <div>
              <img :src="item.imgUrl" alt="" />
              <p class="infoTitle">
                {{ item.name }}
              </p>
              <div class="infoList">
                <div v-for="(items, index) in item.depict">
                  <span class="dot"></span>
                  <span>
                    {{ items.txt }}
                  </span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "demand",
  data() {
    return {
      ourInfoItems: [
        {
          name: "可靠",
          imgUrl: require("@/static/kekao.png"),
          depict: [
            { txt: "提供高效及时的售后保障" },
            { txt: "持续迭代/不断优化" },
            { txt: "专职售后为你解决问题" },
            { txt: "完善的帮助文档为你答疑" },
          ],
        },
        {
          name: "稳定",
          imgUrl: require("@/static/kekao.png"),
          depict: [
            { txt: "提供高效及时的售后保障" },
            { txt: "持续迭代/不断优化" },
            { txt: "专职售后为你解决问题" },
            { txt: "完善的帮助文档为你答疑" },
          ],
        },
        {
          name: "安全",
          imgUrl: require("@/static/kekao.png"),
          depict: [
            { txt: "提供高效及时的售后保障" },
            { txt: "持续迭代/不断优化" },
            { txt: "专职售后为你解决问题" },
            { txt: "完善的帮助文档为你答疑" },
          ],
        },
      ],
      form: {
        tell: "",
        desc: "",
      },
      rules: {
        desc: [{ required: true, message: "请输入您的需求", trigger: "blur" }],
        tell: [
          {
            required: true,
            message: "请输入您的QQ或者微信号",
            trigger: "blur",
          },
        ],
      },
    };
  },
};
</script>

<style lang="less" scoped>
.demand {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
  .banner {
    width: 100%;
    height: 372px;
    background-color: #2e2f3a;
    background-image: url(../static/demand.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    > div {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #fff;
      text-align: center;
      > p {
        font-size: 40px;
        font-family: Microsoft YaHei;
        font-weight: 700;
        color: #fff;
        margin-bottom: 35px;
      }
      .info {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #fff;
        text-align: center;
        width: 365px;
      }
    }
  }
  .demandMain {
    width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 0 66px;
    .order {
      margin-top: 42px;
      .orderBtn {
        width: 146px;
        height: 55px;
        background: #1768e4;
        border-radius: 4px;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #fff;
        text-align: center;
        line-height: 55px;
        margin: 30px auto 0;
        cursor: pointer;
      }
    }
    .ourInfoList {
      display: flex;
      justify-content: space-between;
      margin-top: 42px;
      .infoCard {
        display: flex;
        width: 360px;
        height: 408px;
        background: #fff;
        box-sizing: border-box;
        padding-top: 46px;
        justify-content: center;
        & > div {
          display: flex;
          align-items: center;
          flex-direction: column;
        }
        img {
          width: 118px;
          height: 118px;
        }
        .infoTitle {
          font-size: 22px;
          font-family: PingFang SC;
          font-weight: 700;
          color: #222;
          margin-top: 36px;
        }
        .infoList {
          margin-top: 15px;
          & > div {
            display: flex;
            align-items: center;
            font-size: 16px;
            font-family: PingFang SC;
            font-weight: 400;
            color: #222;
            line-height: 30px;
            .dot {
              width: 7px;
              height: 7px;
              background: #298df8;
              box-shadow: 0 3px 5px 0 rgb(84 152 255 / 89%);
              margin-right: 7px;
              transform: rotate(45deg);
            }
          }
        }
      }
    }
  }
}
</style>